Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 26 Jun 2020 16:47:18 +0000 (17:47 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 26 Jun 2020 16:47:18 +0000 (17:47 +0100)
commitc603dfd7ef46f9c769f806f43291a9c99e1b36bf
tree04586040cdca62c0e1c1d9f6ff67a7f27d2bf2d9
parentf7433644ca238df208bda1a7ba7255d8c87ceb7e
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp